<section class="top-fixed">
    <div class="weui_search_bar" id="search_bar" style="max-width: 640px;margin: auto;">
        <form class="weui_search_outer" id="search_form" method="get" action="/">
            <div class="weui_search_inner">
                <i class="weui_icon_search"></i>
                <input type="search" class="weui_search_input" id="search_input" name="keyword"
                       placeholder="关键词、淘宝分享内容、商品链接、商品标题"
                       required value="{{query.keyword}}"/>
                <a href="javascript:" class="weui_icon_clear" id="search_clear"></a>
            </div>
            <label for="search_input" class="weui_search_text" id="search_text">
                <i class="weui_icon_search"></i>
                <span>关键词、淘宝分享内容、商品链接、商品标题</span>
            </label>
        </form>
        <a href="javascript:" class="weui_search_cancel" id="search_cancel">取消</a>
    </div>
</section>
<div class="bottom-fixed">
    <footer class="table bt-f1 bgf tc fs13 footer hash-nav" style="max-width: 640px;margin: auto;">
        <a href="/#all" class="table-cell vm">首页</a>
        <a href="/pinpai" class="table-cell vm">品牌商品</a>
        <a href="/sales" class="table-cell vm">销量排名</a>
        <a href="/shendan" class="table-cell vm active">夜猫福利</a>
    </footer>

    {{#if show_qrcode}}
        <img class="qrcode" style="width: 80px; height: 80px; position: absolute; top: -80px; right: 0px;"
             src="{{or qrcode 'http://a5.xcworld.cn/qrcode.jpg'}}">
    {{/if}}
</div>
<section class="main" style="max-width: 640px;margin: auto;">
    {{#if rows}}
        <ul class="weui-row list-col-2">
            {{#each rows}}
                <li id="item-{{auctionId}}" class="weui-col-50 {{#if id}}{{../classNames}}{{/if}}">
                    <a class="goods-item" href="/detail?id={{auctionId}}">
                        <div class="item-pic">
                            <img class="lazy" data-original="{{pictUrl}}" class="block">
                            {{#if quanAmount}}
                                <i class="quan_icon"><span>{{format_number quanAmount}}</span><br>元券</i>
                            {{/if}}
                        </div>
                        <div class="p8 bgf">
                            <p class="multi-line fix-height fs12 col0">{{{title}}}</p>
                            <div class="single-line" style="line-height: 28px;">
                                <span class="red fs12 mr5">原价¥{{zkPrice}}</span>
                                {{#if quanAmount}}
                                    <span class="red fs12">券后¥{{minus zkPrice quanAmount}}</span>
                                {{/if}}
                            </div>

                            <div class="single-line">
                                <div class="library_icon">
                                    {{#if isNew}}
                                        <i class="icons icons_xp1"></i>
                                    {{/if}}
                                    {{#if userType}}
                                        <i class="icons icons_shopB"></i>
                                    {{^}}
                                        <i class="icons icons_shopC"></i>
                                    {{/if}}
                                    {{#if isJhs}}
                                        <i class="icons icons_jhs1"></i>
                                    {{/if}}
                                    {{#if isTqg}}
                                        <i class="icons icons_tqg1"></i>
                                    {{/if}}
                                    {{#if isPP}}
                                        <i class="icons icons_pp1"></i>
                                    {{/if}}
                                </div>

                                {{#if biz30day}}
                                    <span class="fr">销量{{biz30day}}</span>
                                {{/if}}
                            </div>
                        </div>
                    </a>
                </li>
            {{/each}}
        </ul>
    {{^}}
        <div class="tc nothing">
            <span class="mt10 fs14 col9">晳时还没有更新商品！每天晚上十点开始更新商品, 请晚点再来</span>
        </div>
    {{/if}}
</section>
<a href="javascript:;" class="to-top">
    <i class="ico-top"></i>
</a>
<div class="code_fixed">
    <div class="item-bg"></div>
    <div class="item-con">
        <span>
            <img src="{{or qrcode 'http://a5.xcworld.cn/qrcode.jpg'}}" alt="" class="imgm">
        </span>
        <div class="mt10 tc fs15 colf">长按图片或微信扫一扫关注公众号</div>
    </div>
</div>